package gam.n1.e.s;


import gam.n1.e.CancellableEvent;
import gam.n1.skills.Skill;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull;

import java.util.List;

/**
 * 表示即将释放的技能列表(可取消)
 * 注意：该事件包含技能自动触发的情况。
 */
public class SkillPreRunEvent extends CancellableEvent{
    private List<Skill> skill;
    public SkillPreRunEvent(@NotNull List<Skill> preRunSkill) {
        this.skill = preRunSkill;
    }

    public List<Skill> getSkill() {
        return skill;
    }
    public void setSkill(@NotNull List<Skill> skill) {
        this.skill = skill;
    }
    public void setSkillIn(@NotNull Skill _s,int index){
        skill.set(index,_s);
    }
}
